package com.lagou.rpc.consumer;

import com.lagou.rpc.consumer.proxy.RpcClientProxy;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
public class ConsumerApplication {

    public static void main(String[] args) throws Exception {
        SpringApplication.run(ConsumerApplication.class, args);

        //初始化rpcClient
        RpcClientProxy instance = RpcClientProxy.getInstance();

        instance.initClient();

    }

}
